function showPanel(){
    var id = event.target.id;
    var tabid = id.split("-")[0];
    var tag = document.getElementById("myTabs").getElementsByTagName("li");
    var taglength = tag.length;
    for(var i=0;i<taglength;i++){
     document.getElementById(tabid).parentElement.children[i].style.display="none";
    }
    document.getElementById(tabid).style.display="block";
}
document.getElementById('login').innerHTML="欢迎，小明 |";
document.getElementById("register").innerHTML="退出";